--
-- created with TexturePacker (http://www.texturepacker.com)
--
-- $TexturePacker:SmartUpdate:e4b035dd38c1355fdd1a375d650d5e3e$
--
-- local sheetInfo = require("myExportedImageSheet") -- lua file that Texture packer published
--
-- local myImageSheet = graphics.newImageSheet( "ImageSheet.png", sheetInfo:getSheet() ) -- ImageSheet.png is the image Texture packer published
--
-- local myImage1 = display.newImage( myImageSheet , sheetInfo:getFrameIndex("image_name1"))
-- local myImage2 = display.newImage( myImageSheet , sheetInfo:getFrameIndex("image_name2"))
--

local SheetInfo = {}

SheetInfo.sheet =
{
    frames = {
    
        {
            -- falling
            x=2,
            y=186,
            width=110,
            height=180,

            sourceX = 16,
            sourceY = 0,
            sourceWidth = 126,
            sourceHeight = 182
        },
        {
            -- fallingmask
            x=2,
            y=2,
            width=110,
            height=182,

            sourceX = 16,
            sourceY = 0,
            sourceWidth = 126,
            sourceHeight = 182
        },
        {
            -- standby1
            x=216,
            y=2,
            width=100,
            height=180,

            sourceX = 0,
            sourceY = 2,
            sourceWidth = 126,
            sourceHeight = 182
        },
        {
            -- standby2
            x=114,
            y=184,
            width=100,
            height=180,

            sourceX = 0,
            sourceY = 2,
            sourceWidth = 126,
            sourceHeight = 182
        },
        {
            -- standbymask
            x=114,
            y=2,
            width=100,
            height=180,

            sourceX = 0,
            sourceY = 2,
            sourceWidth = 126,
            sourceHeight = 182
        },
    },
    
    sheetContentWidth = 512,
    sheetContentHeight = 512
}

SheetInfo.frameIndex =
{

    ["falling"] = 1,
    ["fallingmask"] = 2,
    ["standby1"] = 3,
    ["standby2"] = 4,
    ["standbymask"] = 5,
}

function SheetInfo:getSheet()
    return self.sheet;
end

function SheetInfo:getFrameIndex(name)
    return self.frameIndex[name];
end

return SheetInfo
